GXSetTrayPaperType
You can use theGXSetTrayPaperType
function to change the paper-type information for a specific paper tray on the printer.
OSErr GXSetTrayPaperType (gxTrayIndex whichTray, gxPaperType paper);
whichTray
- The number of the tray for which you are changing the paper-type information.
paper
- A reference to a paper-type object that contains information about the paper that is in the specified tray. If you specify
nil
as the value of this parameter, the tray becomes unconfigured.- function result
- An error code. The value
noErr
indicates that the operation was successful.DESCRIPTION
TheGXSetTrayPaperType
function modifies the paper-type information that is associated with the specified tray on the printer. The information that you supply in thepaper
parameter is stored with the desktop printer and is used to facilitate the handling of mismatched paper types on the printer.RESULT CODES
gxSegmentLoadFailedErr A required code segment could not be found,
or there was not enough memory to load it.gxPrUserAbortErr The user has canceled printing. gxPaperTypeNotFound The specified paper type could not be found. gxNoSuchPTGroup The specified paper type could not be found. SEE ALSO
You can read about managing paper trays in the section "Managing Paper Trays and Their Paper Types" beginning on page 5-5.
Main | Page One | What's New | Apple Computer, Inc. | Find It | Contact Us | Help